cmake_minimum_required(VERSION 3.15)

include(proj.conf)

find_package(bouffalo_sdk REQUIRED HINTS $ENV{BL_SDK_BASE})

# 搜集所有的C文件( Collect source files)
file(GLOB_RECURSE sources "${CMAKE_CURRENT_SOURCE_DIR}/096OLED/*.c")

# 添加头文件的引用路径（Add .h include directories）
sdk_add_include_directories(main 096OLED)

# 把C文件添加到工程里（Add .c file to the project）
target_sources(app PRIVATE ${sources})

sdk_set_main_file(main.c)

project(helloworld)
